﻿using System.Collections.Generic;

namespace User.Api.Dto.Bill
{
    public class CreateBillOrderResponse : BaseResponse
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }        
        
        /// <summary>
        /// 医保状态
        /// 0：未使用医保，
        /// 1：使用了医保，
        /// 2：取消了医保， -- 使用医保失败，可在线缴费
        /// 3：取消医保失败 -- 无法在线支付，需要到窗口支付
        /// </summary>
        public int YiBaoStatus { get; set; }

        /// <summary>
        /// 医保使用失败的消息提醒
        /// </summary>
        public string YiBaoFailedMsg { get; set; }

        /// <summary>
        /// 医保缴费 - 个人支付金额
        /// </summary>
        public string PersonalMoney { get; set; }

        /// <summary>
        /// 医保缴费 - 医保支付金额
        /// </summary>
        public string YiBaoMoney { get; set; }
        
        /// <summary>
        /// 缴费单项目明细列表
        /// </summary>
        public List<BillItem> Items { get; set; }

        public class BillItem
        {
            /// <summary>
            /// 项目费用类型
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// 项目名称
            /// </summary>
            public string Name { get; set; }

            /// <summary>
            /// 项目数量
            /// </summary>
            public string Account { get; set; }

            /// <summary>
            /// 项目单位
            /// </summary>
            public string Unit { get; set; }

            /// <summary>
            /// 项目单价
            /// </summary>
            public string ItemPrice { get; set; }

            /// <summary>
            /// 项目小计
            /// </summary>
            public string Money { get; set; }
        }
    }
}